package com.zhiyou100.service;

import java.util.ArrayList;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou100.dao.RepayDao;
import com.zhiyou100.model.Repay;

@Service
public class RepayServiceImpl implements RepayService{

	@Autowired
	private RepayDao repayDao;
	
	@Override
	public ArrayList<Repay> list(int id) {

		ArrayList<Repay> find = repayDao.findAll(id);
		
		return find;
	}

	@Override
	public void add(Repay repay) {

		repayDao.add(repay);
		
	}

	@Override
	public void update(Repay repay) {

		repayDao.update(repay);
		
	}

	@Override
	public void delete(int id) {

		repayDao.delete(id);
		
	}

}
